#include "widget.h"
#include "ui_widget.h"
#include<QPushButton>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    QPushButton*btn = new QPushButton();
    btn->setText("按妞");//设置文本
    btn->setParent(this);//显示到窗口上

}

Widget::~Widget()
{
    delete ui;
}

